package com.wgts.wgts.dagger.module;

import com.wgts.wgts.dagger.scope.ActivityScope;
import com.wgts.wgts.mvp.model.IAwardMoreActivityModel;
import com.wgts.wgts.mvp.model.imp.AwardMoreActivityModel;
import com.wgts.wgts.mvp.presenter.IAwardMoreActivityPresenter;
import com.wgts.wgts.mvp.presenter.imp.AwardMoreActivityPresenter;
import com.wgts.wgts.mvp.view.IAwardMoreActivityView;
import com.wgts.wgts.netmodle.NetService;

import dagger.Module;
import dagger.Provides;

/*
 *
 *
 *   data:2018/10/1211:38
 *
 */
@Module
public class AwardMoreActivityModule {
    private IAwardMoreActivityView view;

    public AwardMoreActivityModule(IAwardMoreActivityView view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    public IAwardMoreActivityView provideView(){
        return view;
    }

    @ActivityScope
    @Provides
    public IAwardMoreActivityModel provideModel(NetService netService){
        return new AwardMoreActivityModel(netService);
    }

    @ActivityScope
    @Provides
    public IAwardMoreActivityPresenter providePresenter(IAwardMoreActivityView view, IAwardMoreActivityModel model){
        return new AwardMoreActivityPresenter(view, model);
    }
}
